home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16227 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. From: james@belgonet.be (James Bates)
  2. Newsgroups: comp.lang.c++
  3. Subject: Re: How do I create xbitmaps with greater colordepth than mono??
  4. Date: 9 Apr 1996 23:00:48 GMT
  5. Organization: Belgonet
  6. Message-ID: <4keq70$vd4@www.belgonet.be>
  7. References: <3169DCD7.3B36BBF2@ssv1.union.utah.edu>
  8. NNTP-Posting-Host: dialup09.brussels.eunet.be
  9. X-Newsreader: WinVN 0.92.6+
  10. Path: news.belgonet.be!news
  11.  
  12. In article <3169DCD7.3B36BBF2@ssv1.union.utah.edu>, "Marc E. Christensen" <marc@ssv1.union.utah.edu> says:
  13. >
  14. >I've been searching all day for information to create xbitmaps with more than
  15. >one colordepth (mono).  New window manages (e.g. fvwm) use xbitmaps which are
  16. >8bpp (possibly more but I don't know).  I have been unsuccessful in finding any
  17. >incormation on the formats for these graphics.  Xbitmaps are c code - right?
  18. >
  19.  
  20. Xbitmaps with more than two colors are called "xpixmaps". They can have
  21. whatever depth you want. X pixmaps are most commonly stored in a file
  22. with extension .xpm. Such a file contains what looks like C code, its just
  23. the definition of a string. These .xpm pixmaps can easily be manipulated
  24. by means of the XPM library. As I assume you are Linux, I can tell you
  25. that a pre-compiled version of the libXpm exists on sunsite:
  26. ftp://sunsite.unc.edu/pub/Linux/libs/X11 (I think)
  27.  
  28. However you would be well advised also to download the sources (from the
  29. same place) because they contain a postscript file which explains how to
  30. use the Xpm library and what the arguments and return values are of the
  31. various XPM functions.
  32.  
  33. If you have any more questions, feel free to mail me, as I have been through
  34. the same questions a few months ago :)
  35.  
  36. Good luck!
  37.